<?php
$this->breadcrumbs=array(
	'Home'=>array('home/index'),
	'Register',
);?>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'users-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>
	<?php echo $form->errorSummary($model); ?>
	
	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>155)); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEX($model,'password_repeat');?>
		<?php echo $form->passwordField($model,'password_repeat',array('size'=>60, 'maxlength'=>100));?>
		<?php echo $form->error($model,'password_repeat')?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'usertype');?>
		<?php echo $form->textField($model,'usertype');?>
		<?php echo $form->error($model,'usertype');?>
	</div>
		<div class="row">
			<?php echo $form->labelEx($model,'verifyCode');?>
			<div>
				<?php $this->widget('CCaptcha');?>
				<?php echo $form->textField($model,'verifyCode');?>
			</div>
		</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
